#ifndef _MONSTERS_H_
#define _MONSTERS_H_

#define MAX_MONSTERS 64

typedef struct
{
	unsigned char freq;
	unsigned short x;
	unsigned short y;
	unsigned char radius;
	unsigned int code;
}__attribute__((__packed__)) monster_t;

extern int rmonstercount;
extern int fmonstercount;
extern monster_t rmonsters[MAX_MONSTERS];

void readmonsters();
void drawmonsters();
void initmonsters();

const char *getmonstername(int code);

int monsterclicked(int x, int y);
void dragmonster(int id, int x, int y);

#endif